<html>
	<head>
		<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1,minimum-scale=1, width=device-width" />
		<include file="./Application/Home/View/Default/header/header.html"/>
	</head>
	<body>

	<div class="col-xs-12 user_top">
		<div class="col-xs-12">
			<div class="user_images">
				<img src="{$user_info.avatar}" class="img-responsive">
				<div class="col-xs-12 text-center user_name">{$user_info.username}</div>
			</div>
		</div>
	</div>
	
	<div class="col-xs-12 none-both-padding user_option">
		<div class="col-xs-12 user_option_list"><a href="/home/index/order"><i class="iconfont">&#xe625;</i><span>立即下单</span><i class="iconfont">&#xe64a;</i></a></div>
		<div class="col-xs-12 user_option_list"><a href="/home/index/order_content"><i class="iconfont">&#xe625;</i><span>订单列表</span><i class="iconfont">&#xe64a;</i></a></div>
		<div class="col-xs-12 user_option_list" onclick="user_logout()"><i class="iconfont">&#xe625;</i><span>退出登陆</span><i class="iconfont">&#xe64a;</i></div>
	</div>

	<include file="./Application/Home/View/Default/header/footer.html"/>

	<script>
		function user_logout(){
			$.ajax({
				url:"/home/index/logout",
				type:'post',
				dataType:'json',
				success:function(data){
					if(data.code == 200){
						location.href = "/home/index/user_login";
					}else{
						alert(data.msg);
					}
				}
			})
		}
	</script>
	
</body>
</html>